﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ElectronicJournal.Admin
{
    public partial class DBAdmin : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void AddScientificDirection(object sender, EventArgs e)
        {
            try
            {
                SqlDataSourceScientificDirections.InsertParameters[0].DefaultValue = ScientificDirectionTextBox.Text;
                SqlDataSourceScientificDirections.Insert();

                ScientificDirectionTextBox.Text = null;
            }
            catch (Exception exp)
            {

            }
        }

        protected void AddPublicationType(object sender, EventArgs e)
        {
            try
            {
                SqlDataSourcePublicationTypes.InsertParameters[0].DefaultValue = PublicationTypeTextBox.Text;
                SqlDataSourcePublicationTypes.Insert();

                PublicationTypeTextBox.Text = null;
            }
            catch (Exception exp)
            {

            }
        }
    }
}